package org.springblade.third.spi;

import org.springblade.third.dto.ThirdRequest;
import org.springblade.third.dto.ThirdResponse;

public interface ThirdInterceptor {

    default int getOrder() {
        return 0;
    }

    default boolean supports(String channelCode, String productCode) {
        return true;
    }

    default void before(ThirdRequest request) {
    }

    default void after(ThirdRequest request, ThirdResponse<?> response) {
    }

    default void onError(ThirdRequest request, Exception ex) {
    }
}


